POV-Ray : Newsgroups : povray.text.scene-files : Another Lightning macro : Re: Another Lightning macro Server Time
8 Jul 2024 09:15:15 EDT (-0400)
  Re: Another Lightning macro  
From: Tom Melly
Date: 3 May 2001 06:28:17
Message: <3af132c1@news.povray.org>
"Nekar Xenos" <j-p### [at] citywalkcoza> wrote in message
news:3af12624@news.povray.org...
> > Will you post your modified version (the one using your lightning)?
>
> I was going to but I had that stiffy(3.5" disk unable to read stuff)
problem
> again. Can't wait till I get a CDRW so that I can bring files from home...
> I'll try again tomorrow. But I think it would be better if I could
> completely replace you branches with mine. That would be easy if you could
> modify your version to have only straight arms without the 'jaggedness'.
> Could you try that for me. I'm still rather 'new' to coding so it's not
> always that easy for me to decipher what is what.
>
> Thanks
>

Well, removing the jaggedness is easy enough:

#declare xShift = segPosA.x; // + ((rand(myRand)-0.5)*LSpike) + xPlus;
#declare yShift = segPosA.y + 0.5; // (rand(myRand)/5);
#declare zShift = segPosA.z; // + ((rand(myRand)-0.5)*LSpike) + zPlus;

The trouble is that all the forks then just go straight down. Is that what
you meant? (probably not).

The most significant params are LSpread and LSpike in terms of the basic
shape of the bolt.

Try these four settings:

//Make_Bolt(500, 11211, 0.03, 6, 0.3, 0.05, 0.5, 0.2) // normal (whatever
that means)
//Make_Bolt(500, 11211, 0.03, 6, 0.0003, 0.05, 0.5, 0.2)  // small LSpread -
quite nice!
//Make_Bolt(500, 11211, 0.03, 6, 0.3, 0.05, 0.5, 0.0002) // small LSpike
//Make_Bolt(500, 11211, 0.03, 6, 0.0003, 0.05, 0.5, 0.0002) // small LSpread
and LSpike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.